<?php
namespace app\api\model;
use app\common\model\Common;
class Member extends Common
{
    protected $createTime = 'register_at';
    public function setPasswordAttr($password)
    {
        return password_hash($password,PASSWORD_DEFAULT,['cost' => 10]);
    }
}